 |
|
 |
Subject: Notes C Api to get Last modified in replica time |
 |
 |
 |
Product Area: Designer Client |
 |
Technical Area: Functionality |
 |
Platform: Windows 2003 server |
 |
Release: 8.0 |
 |
Reproducible: Intermittent |
 |
 |
 |
 |
Hi,
We have a small problem. A scheduled agent is trying to get collection of docs modified for a particular date range eg - 01 Jan to 05 Jan.
Once it gets all the docs, it sorts it by date. To get the modified date in this replica we are using C api calls as below.
---------------------------------------
With doc.ParentDatabase
db = String$(1024," ")
OSPathNetConstruct 0,.server,.filePath,db
End With
Dim hDb As Long
NSFDbOpen db,hDb
If hDb = 0 Then Exit Function
Dim hNt As Long
Dim t(1) As Long
NSFNoteOpenExt hDb,Clng("&H" & doc.NoteID),0,hNt
If Not hNt = 0 Then
NSFNoteGetInfo hNt,4,t(0)
NSFNoteClose hNT
s = Space(80)
Dim ndt As New NotesDateTime(t(0))
ConvertTIMEDATEToText 0,0,t(0),s,80,ns
Set rc = New NotesDateTime(Left$(s$,ns))
End If
NSFDbClose hDb
The NSFNoteGetInfo hNt,4,t(0) should return a numeric value which is converted into date time value.
This code in a scheduled agent does not give the date time value. Same when done through manual agent returns proper values. The agent properties are not changed at all.
Any ideas what could be the reason?
 
Feedback number WEBB7G7EVU created by ~Dan Refootherlen on 07/03/2008


Notes C Api to get Last modified in... (~Dan Refootherl... 3.Jul.08)
. . Try this (~Nicole Zengero... 4.Jul.08) |
|  |
|